package com.kgc.collection.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SalesAdvanceRefundDetail implements Serializable {

  private int id;
  private String mainCode;
  private int advanceType;
  private int advanceName;
  private int bankAccount;
  private BigDecimal amount;
  private String createBy;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date createTime;
  private String updateBy;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date updateTime;
  private long isDelete;

  public SalesAdvanceRefundDetail() {
  }

  public SalesAdvanceRefundDetail(int id, String mainCode, int advanceType, int advanceName, int bankAccount, BigDecimal amount, String createBy, Date createTime, String updateBy, Date updateTime, long isDelete) {
    this.id = id;
    this.mainCode = mainCode;
    this.advanceType = advanceType;
    this.advanceName = advanceName;
    this.bankAccount = bankAccount;
    this.amount = amount;
    this.createBy = createBy;
    this.createTime = createTime;
    this.updateBy = updateBy;
    this.updateTime = updateTime;
    this.isDelete = isDelete;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getMainCode() {
    return mainCode;
  }

  public void setMainCode(String mainCode) {
    this.mainCode = mainCode;
  }

  public int getAdvanceType() {
    return advanceType;
  }

  public void setAdvanceType(int advanceType) {
    this.advanceType = advanceType;
  }

  public int getAdvanceName() {
    return advanceName;
  }

  public void setAdvanceName(int advanceName) {
    this.advanceName = advanceName;
  }

  public int getBankAccount() {
    return bankAccount;
  }

  public void setBankAccount(int bankAccount) {
    this.bankAccount = bankAccount;
  }

  public BigDecimal getAmount() {
    return amount;
  }

  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }

  public String getCreateBy() {
    return createBy;
  }

  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getUpdateBy() {
    return updateBy;
  }

  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public long getIsDelete() {
    return isDelete;
  }

  public void setIsDelete(long isDelete) {
    this.isDelete = isDelete;
  }

  @Override
  public String toString() {
    return "SalesAdvanceRefundDetail{" +
            "id=" + id +
            ", mainCode='" + mainCode + '\'' +
            ", advanceType=" + advanceType +
            ", advanceName=" + advanceName +
            ", bankAccount='" + bankAccount + '\'' +
            ", amount=" + amount +
            ", createBy='" + createBy + '\'' +
            ", createTime=" + createTime +
            ", updateBy='" + updateBy + '\'' +
            ", updateTime=" + updateTime +
            ", isDelete=" + isDelete +
            '}';
  }
}
